// uno.config.ts
import { defineConfig, definePreset, Rule, presetUno, presetAttributify, transformerVariantGroup } from 'unocss'
import transformerDirectives from '@unocss/transformer-directives'
import presetTypography from '@unocss/preset-typography'
const rules: Rule<any>[] = []
rules.push([/^(.+)-(.+)$/, async (match, ctx) => {
    return `${match.join('-')}`
}])

const ngerPreset = definePreset({
    name: 'nger',
    prefix: 'nger',
    rules: [
        ...rules
    ]
})
export default defineConfig({
    shortcuts: [
        ['center', 'flex items-center justify-center']
    ],
    presets: [
        presetUno(),
        presetAttributify(),
        presetTypography(),
        ngerPreset
    ],
    transformers: [
        transformerDirectives(),
        transformerVariantGroup(),
    ],
    separators: '__'
})
